﻿@model OMS.Models.CreateItem

@{
    ViewBag.Title = "CreateItem";
}

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <div class="panel-text">
        <h2>Create New Item</h2>

                <table class="create-user-table">
        <tr>
           <td>@Html.LabelFor(model => model.ItemName)</td>        
            <td>@Html.TextBoxFor(model => model.ItemName, new { @class = "border" })</td>
            <td>@Html.ValidationMessageFor(model => model.ItemName)</td>
        </tr>

        <tr>
            <td>@Html.LabelFor(model => model.ItemDescription)</td>
            <td>@Html.TextBoxFor(model => model.ItemDescription, new { @class = "border" })</td>
            <td>@Html.ValidationMessageFor(model => model.ItemDescription)</td>
        </tr>

        <tr>
            <td>@Html.LabelFor(model => model.ItemPrice)</td>
            <td>@Html.TextBoxFor(model => model.ItemPrice, new { @class = "border" })</td>
            <td>@Html.ValidationMessageFor(model => model.ItemPrice)</td>
        </tr>
        </table>

                    
    </div>

        <div style="margin-left:80px;">
                <button type="submit" name="action" value="Create" class="buttons-blue">Create</button>
                <button type="reset" name="action" value="Refresh" class="buttons-yellow">Edit</button>
                @Html.ActionLink("Cancel","Index",null,new {@class="buttons-red"})
            </div>
}
<br />
<br />
@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
